import Vue from 'vue'
import App from './App.vue'
// import Vant from 'vant';
// import 'vant/lib/index.css';
import Antd from "ant-design-vue";
import "ant-design-vue/dist/antd.css";
import router from './router'

import VueLazyload from 'vue-lazyload'
Vue.use(Antd);
Vue.config.productionTip = false
const loadimage = require('./assets/doc_icon.png');

Vue.use(VueLazyload, {
  error: loadimage,
  loading: loadimage,
  attempt: 1
})

new Vue({
  el: '#app',
  router,
  render: h => h(App),
  mounted(){
    document.dispatchEvent(new Event('render-event'));

    // this.$nextTick(() => {
    // })
  },
}).$mount('#app')
